package org.jsbd.boss.domian;

import java.util.Date;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.jsbd.boss.annotation.ExportExcelAnnotation;
import org.jsbd.boss.common.CustomDateTimeSerializer;
import org.jsbd.boss.common.DataGridModel;

import com.alibaba.fastjson.JSONObject;

public class Comment {

	private Integer id;

	@ExportExcelAnnotation(index = 0)
	private String mark;

	@ExportExcelAnnotation(index = 1)
	private String comment;

	private Integer used = 0;
	private Date createTime;
	private Date modifyTime;
	private DataGridModel pageInfo;

	private List<String> keywords;
	private String apkName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Integer getUsed() {
		return used;
	}

	public void setUsed(Integer used) {
		this.used = used;
	}

	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public DataGridModel getPageInfo() {
		return pageInfo;
	}

	public void setPageInfo(DataGridModel pageInfo) {
		this.pageInfo = pageInfo;
	}

	public List<String> getKeywords() {
		return keywords;
	}

	public void setKeywords(List<String> keywords) {
		this.keywords = keywords;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}

	@Override
	public String toString() {
		// return ReflectionToStringBuilder.toString(this,
		// ToStringStyle.SHORT_PREFIX_STYLE);
		return JSONObject.toJSONString(this);
	}
}